package cn.edu.ujn.multiple.model;

import java.util.List;

import org.springframework.stereotype.Component;
@Component
public class Orders {

	private Integer id;

    private String number;

    private Integer custId;
    
    private Customer customer;//一对一关联
    
    private List<Product>productList;//多对多关联

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public Integer getCustId() {
		return custId;
	}

	public void setCustId(Integer custId) {
		this.custId = custId;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public List<Product> getProductList() {
		return productList;
	}

	public void setProductList(List<Product> productList) {
		this.productList = productList;
	}

	@Override
	public String toString() {
		return "Orders [id=" + id + ", number=" + number + ", custId=" + custId + ", customer=" + customer
				+ ", productList=" + productList + "]";
	}

}